package cn.com.twoke.application.game.mario.core.ecs.component;

public  class RigidbodyComponent implements Component {
    public enum BodyType {
        DYNAMIC,    // 受物理影响
        KINEMATIC,  // 不受力但可以移动
        STATIC      // 完全静止
    }

    public BodyType bodyType = BodyType.DYNAMIC;
    public float gravityScale = 1.0f;
    public Vector2f velocity = new Vector2f(0, 0);
    public boolean useGravity = true;
    public boolean isGrounded = false;
}